package com.dandelion.api.domain;

import com.dandelion.common.dao.auto.pojo.OrderItem;
import com.fasterxml.jackson.annotation.JsonIgnore;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Objects;

public class OrderItemAdapterVO implements Serializable {
    private OrderItem item;
    private String subCatName;
    private String leafCatName;

    public OrderItemAdapterVO(OrderItem order) {
        this.item = Objects.requireNonNull(order, "order is null");
    }

    @JsonIgnore
    public OrderItem getItem() {
        return item;
    }

    public String getSubCatName() {
        return subCatName;
    }

    public void setSubCatName(String subCatName) {
        this.subCatName = subCatName;
    }

    public String getLeafCatName() {
        return leafCatName;
    }

    public void setLeafCatName(String leafCatName) {
        this.leafCatName = leafCatName;
    }

    public String getImg() {
        return item.getImg();
    }

    public String getModel() {
        return item.getModel();
    }

    public Integer getItemNum() {
        return item.getItemNum();
    }

    public BigDecimal getWeight() {
        return item.getWeight();
    }

    public Integer getLength() {
        return item.getLength();
    }

    public Integer getHeight() {
        return item.getHeight();
    }

    public Integer getWidth() {
        return item.getWidth();
    }

    public String getReq() {
        return item.getReq();
    }
}